package com.tanhua.dubbo.server.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 用于返回分页数据实体对象
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfo<T> implements Serializable {

    private static final long serialVersionUID = -2105385689859184204L;

    private Integer total = 0;      //总条数
    private Integer pageNum = 0;    //当前页
    private Integer pageSize = 0;   //每页条数
    private List<T> records = Collections.emptyList();  //数据列表

}